import request from '@/utils/request'

const module = 'system'
const prefix = 'user'

export function login(data) {
  return request({
    url: `/${module}/${prefix}/login`,
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: `/${module}/${prefix}/info`,
    method: 'post'
  })
}

export function logout() {
  return request({
    url: `/${module}/${prefix}/logout`,
    method: 'post'
  })
}

export function passwd(data) {
  return request({
    url: `/${module}/${prefix}/passwd`,
    method: 'post',
    data
  })
}
